package com.park.service.impl.exam;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.exam.ExamPaperModel;
import com.park.client.service.exam.ExamPaperService;
import com.park.client.vo.ExamPaperVo;
import com.park.dao.exam.ExamPaperMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("examPaperService")
public class ExamPaperServiceImpl  extends BaseServiceImpl<ExamPaperModel> implements ExamPaperService {
	
	@Autowired
	private ExamPaperMapper examPaperMapper;

	@Override
	public boolean insert(ExamPaperModel record) {
		return examPaperMapper.insert(record) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return examPaperMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(ExamPaperModel record) {
		return examPaperMapper.insertSelective(record)==1;
	}
	@Override
	public ExamPaperModel selectByPrimaryKey(Long id) {
		return examPaperMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(ExamPaperModel record) {
		return examPaperMapper.updateByPrimaryKeySelective(record)==1;
	}
	@Override
	public boolean updateByPrimaryKey(ExamPaperModel record) {
		return examPaperMapper.updateByPrimaryKey(record) == 1;
	}
	
	@Override
	public List<ExamPaperVo> selectPagination(ExamPaperVo examPaperVo) {
		return this.examPaperMapper.selectPagination(examPaperVo);
	}
	@Override
	public Integer selectTotal(ExamPaperVo examPaperVo) {
		return this.examPaperMapper.selectTotal(examPaperVo);
	}
	

}
